package com.ocl.www.utils;

import com.ocl.www.domain.UserAttention;

import java.util.List;

/**
 * Created by Administrator on 2016/11/3.
 */
public class StringUntil {

    public static String listToString(List<UserAttention> list){
        String str = "";
        for (int i=0;i<list.size();i++) {
            if(i==list.size()-1){
                str = str + list.get(i).getCategoryName();
            }else{
                str = str + list.get(i).getCategoryName()+",";
            }
        }
        return str;

    }


    public static List<String> getTitleList(String titlestr){



        int strsize = titlestr.length();
        char[] ch = new char[strsize];
        titlestr.getChars(0,strsize-1,ch,0);



        return null;
    }

    public static void main(String[] args){

        StringUntil.getTitleList("#qwer,qwer#,#345345#");

    }
}
